﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace nspLib.Util
{
    public class CommonUtils
    {
        public String AutoStrName()
        {
            String strName = DateTime.Now.ToString();
            const char Space = ' ';
            const char Comma = ':';
            const char Key = '/';
            char[] delimiters = new char[]
            {
                Space,
                Comma,
                Key
            };
            String result = "";
            int i = 1;
            foreach (String subString in strName.Split(delimiters))
            {
                result += subString;
            }

            return result.ToString();
        }
    }
}
